package bussiness;

import java.util.Map;


import javax.servlet.http.HttpServletRequest;

import struts.action.Action;
import struts.form.ActionForm;

public class UserAction implements Action {

	@Override
	public String execute(HttpServletRequest request, ActionForm actionForm,
			Map<String, String> actionForward) {
		String url = "";
		User user = (User)actionForm;
		if(user.getName().equals("haha")){
			url = "success";
			
		}else{
			url = "fail";
		}
		request.setAttribute("mess", url);
		return actionForward.get(url);
	}
		
	
		
		
		

	
}
